<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        var num1 = parseInt(prompt("请输入任意数字", 999));
        var num2 = parseInt(prompt("请再次输入一个任意数字", 999));
        (num1 % 2 == 0 && num2 % 2 == 0) || (num1 % 2 != 0 && num2 % 2 != 0) ? alert("两者奇偶性相同") : alert("两者奇偶性不同")
        
    </script>
</head>

<body>
</body>

</html>